package com.goodedeeds.webapp.controller;

import com.goodedeeds.webapp.admin.controller.SiteAdministrationAction;
import com.youtills.core.admin.ILookup;
import com.youtills.core.auth.ResourcePermissionType;

/**
 * Created by IntelliJ IDEA.
 * User: ravi
 * Date: 6/27/12
 * Time: 8:51 PM
 * To change this template use File | Settings | File Templates.
 */
public enum DashboardTab implements IDashboardTab {

    NONE(null, null, null),
    HOME(HomeAction.URL, "Home", null),
    ABOUT(AboutAction.URL, "About", null),
    DONATE(DonateAction.URL, "Donate", null),
    EDUCATION_SITES(EducationSitesAction.URL, "Education Sites", null),
    CONTACT_US(ContactAction.URL, "Contact Us", null),
    BLOG(BlogAction.URL, "Blog", null),

//    PROFILE(MyProfileAction.URL, "Profile", null),
    SITE_ADMINISTRATION(SiteAdministrationAction.URL, "Administration", ResourcePermissionType.SITE_ADMINISTRATION),
    ;

    private final String action;
    private final String displayName;
    private final ILookup permissionType;

    DashboardTab(String action, String displayName, ILookup permissionType) {
        this.action = action;
        this.displayName = displayName;
        this.permissionType = permissionType;
    }

    public String getAction() {
        return action;
    }

    public String getDisplayName() {
        return displayName;
    }

    public ILookup getPermissionType() {
        return permissionType;
    }
}
